package com.cavy.platform.client.domain;

import lombok.Data;

import java.util.Date;

/**
 * Created by tangxu on 18-7-30.
 */
@Data
public class RunningParameter {
    public static final String THREAD_NAME_SEPARATOR = "-";
    private String number;
    private String pipelineName;
    private String projectName;
    private String workspaceName;
    private Date runningTimeOut;
    private String threadName;
    private String stageName;

    public void setJobInfo(Job job) {
        this.number = job.number;
        this.pipelineName = job.pipelineName;
        this.projectName = job.projectName;
        this.workspaceName = job.workspaceName;
        this.runningTimeOut = job.runningTimeOut;
    }

    public void setJobThreadName(String threadName) {
        this.threadName = threadName;
    }

    public void setStageName(String stageName) {
        this.stageName = stageName;
    }
}
